function init() {
  var that = this;
  //这里是对应你html里的点击事件啊下拉事件等等
  that.copyFn = function (event: any) {
    wx.setClipboardData({
      data: event.target.dataset.url,
      success: function () {
        wx.showToast({
          title: "复制成功，可以到浏览器粘贴链接查看",
          icon: "none",
        });
      },
      fail: function () {
        wx.showToast({
          title: "复制失败",
          icon: "none",
        });
      },
    });
  };
}
module.exports = {
  init: init,
};
